package com.xmutca.core.netty.api;

/**
 * @author: 彭伟煌(pengweihuang@xmutca.com)
 * @create: 2016-08-15 12:04
 */
public class NotifyMessage extends Message {

    private String message;

    private status msgStatus = status.notify;

    public enum status {
        notify("notify"), broadcast("broadcast");

        private String type;

        status(String type) {
            this.type = type;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        @Override
        public String toString() {
            return type;
        }
    }

    public NotifyMessage() {
        setMsgType(MessageType.notify);
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public status getMsgStatus() {
        return msgStatus;
    }

    public void setMsgStatus(status msgStatus) {
        this.msgStatus = msgStatus;
    }

    public void setBroadcastStatus() {
        this.msgStatus = status.broadcast;
    }

    public void setNotifyStatus() {
        this.msgStatus = status.notify;
    }
}
